package com.linghang.demo.service.impl;


import com.linghang.demo.domain.imgTest;

import com.linghang.demo.repository.ImgTestReposrtory;
import com.linghang.demo.service.imgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class imgServiceImpl implements imgService {
    @Autowired
    private ImgTestReposrtory reposrtory;

    @Override
    public imgTest add(imgTest imgTest, String path) {
        imgTest.setUrl(path);
        return reposrtory.save(imgTest);
    }
}
